<div id="noteTabs">
    <h2>Taby</h2>
        <ul>
        <?php if(!empty($tabs)): ?>
            <?php foreach($tabs as $t): ?>
                    <li class="<?php echo ( $active==$t->id ?' ui-state-active ':' ui-state-default ' ) ?> ui-corner-all" id="tab<?php echo $t->id?>"><?php echo $t->title?></li>
            <?php endforeach; ?>
        <?php else: ?>
                <li class="ui-state-active ui-corner-all" id="tab0">Default</li>
        <?php endif; ?>
        </ul>
</div>

